package top.huntwolf.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huntwolf.admin.pojo.Exhibition;
import top.huntwolf.admin.pojo.book.BuyBook;
import top.huntwolf.admin.pojo.book.NewBook;
import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ExhibitionDao {
    //返回所有栏目表信息
    public List<Exhibition> selectAll();

    //根据id返回 （栏目表 + 书本list）信息
    public Exhibition selectById(String exhibitId);

    //先删除原有 再 增加exhibition_book表数据
    public void delete(String exhibitId);

    public void Insert(Map<String,Object> map);

    //插入exhibition
    public void InsertExhibition(Exhibition exhibition);

    //更新 exhibition 数据
    public void updateExhibitionInfo(Exhibition exhibition);

    public List<BuyBook> selectBookInfo(String exhibitId);


}
